package com.isdepci.project.reference.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.reference.mapper.ReferenceDataMapper;
import com.isdepci.project.reference.domain.ReferenceData;
import com.isdepci.project.reference.service.IReferenceDataService;

/**
 * 字典数据Service业务层处理
 *
 * @author isdepci
 * @date 2023-08-22
 */
@Service
public class ReferenceDataServiceImpl implements IReferenceDataService
{
    @Autowired
    private ReferenceDataMapper referenceDataMapper;

    /**
     * 查询字典数据
     */
    @Override
    public ReferenceData selectReferenceDataById(Long id)
    {
        return referenceDataMapper.selectReferenceDataById(id);
    }

    /**
     * 查询字典数据列表
     */
    @Override
    public List<ReferenceData> selectReferenceDataList(ReferenceData referenceData)
    {
        return referenceDataMapper.selectReferenceDataList(referenceData);
    }

    /**
     * 新增字典数据
     */
    @Override
    public int insertReferenceData(ReferenceData referenceData)
    {
        return referenceDataMapper.insertReferenceData(referenceData);
    }

    /**
     * 修改字典数据
     */
    @Override
    public int updateReferenceData(ReferenceData referenceData)
    {
        return referenceDataMapper.updateReferenceData(referenceData);
    }

    /**
     * 批量删除字典数据
     */
    @Override
    public int deleteReferenceDataByIds(Long[] ids)
    {
        return referenceDataMapper.deleteReferenceDataByIds(ids);
    }

    /**
     * 删除字典数据信息
     */
    @Override
    public int deleteReferenceDataById(Long id)
    {
        return referenceDataMapper.deleteReferenceDataById(id);
    }
}
